package com.bonuo.crm.service.impl;

import com.bonuo.crm.domain.Province;
import com.bonuo.crm.mapper.ProvinceMapper;
import com.bonuo.crm.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List<Province> selectProvinceList(Province province) {

        return provinceMapper.selectProvinceList(province);
    }

    @Override
    public Integer add(Province province) {
        return provinceMapper.add(province);
    }

    @Override
    public Integer update(Province province) {
        return provinceMapper.update(province);
    }

    @Override
    public Integer delete(Integer id) {
        return provinceMapper.delete(id);
    }
}
